﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Mobile/mTune.Master" AutoEventWireup="true"  CodeBehind="Homed.aspx.cs" Inherits="WebApplication1.Mobile.Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
      <asp:ListView ID="lstmTunez" runat="server" DataSourceID="dsmTunez">    
    <ItemTemplate>
    <table width="100%">
<tbody>
<tr valign="top">
<td style="font-size:0px" width="125">

<a href="<%# getrtsp(Eval("videoID").ToString(),0)%>"><img src="http://i.ytimg.com/vi/<%#Eval("videoID")%>/2.jpg" alt="video" width="120" height="90" style="border:0;margin:0px;"></a>
</td>
<td style="width:100%;font-size:13px">
<div style="font-size:90%;text-align:left;padding-bottom:1px" dir="ltr">
<a accesskey="1" href="<%# getrtsp(Eval("videoID").ToString(),0)%>"><%#Eval("title")%></a>
</div>
  
<div style="color:#333;font-size:80%"><%#details(Eval("videoID").ToString(),2)%>&nbsp;&nbsp;<img src="<%#details(Eval("videoID").ToString(),4)%>" alt="" width="49" height="9" style="border:0;margin:0px;"></div>
<div style="color:#333;font-size:80%"><%#details(Eval("videoID").ToString(),3)%> days ago</div>
<div style="color:#333;font-size:80%"><%#details(Eval("videoID").ToString(),1)%> views</div>
<div style="color:#666;margin-top:5px;font-size:90%">
In <a href="home.aspx?mTag=<%#Eval("mainTag")%>" style="text-decoration: none"><%#Eval("mainTag")%></a>
</div>
<div style="color:#333;font-size:80%">Play <a href="<%# getrtsp(Eval("videoID").ToString(),0)%>">Normal</a>&nbsp;&nbsp;<a href="<%# getrtsp(Eval("videoID").ToString(),1)%>">HD</a>
</div>
</td>
</tr>
</tbody></table>
<hr size="1" noshade="noshade" color="#999" style="width:100%;height:1px;margin:2px 0;padding:0;color:#999;background:#999;border:none;">
    
    </ItemTemplate>
    </asp:ListView>
    <asp:DataPager ID="dpmTunez" runat="server" PagedControlID="lstmTunez" 
        PageSize="4">
        <Fields>
            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                ShowNextPageButton="False" ShowPreviousPageButton="False" />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                ShowNextPageButton="False" ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>
    <asp:SqlDataSource ID="dsmTunez" runat="server" 
        ConnectionString="<%$ ConnectionStrings:connmTunez %>" 
       ></asp:SqlDataSource>
        
</asp:Content>
